package com.hd.pzhwlxt.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "notice_tbl")
public class Notice {
    /**
     * 编号
     */
    @TableId(value = "notice_id",type = IdType.AUTO)
    private Integer noticeId;

    /**
     * 标题
     */
    @TableField(value = "notice_title")
    private String noticeTitle;

    /**
     * 正文
     */
    @TableField(value = "notice_text")
    private String noticeText;

    /**
     * 时间
     */
    @TableField(value = "notice_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date noticeTime;
}
